<div id="member-admin">
    <div class="member memberTab row">
        <div class="col-md-6"><a ng-click="memberAdminDisplay()"><h3>成员管理</h3></a></div>
        <div class="col-md-6">
            <button class="btn btn-info" ng-click="addDisplay()">添加成员</button>
        </div>
    </div>

    <div id="member-admin-list">
        <table class="table ">

        </table>

        <table class="table">
            <tr>
                <th>姓名</th>
                <th>成员类型</th>
                <th>性别</th>
                <th>详情</th>
                <th>操作</th>
            </tr>
            <tr ng-repeat="item in items">
                <td>{{item.sName}}</td>
                <td>{{item.sSession}}</td>
                <td>{{item.sSex}}</td>
                <td>
                    <button class="btn btn-info" ng-click="detailDisplay(item)">详情</button>
                </td>
                <td>
                    <button class="btn btn-primary" ng-click="modifyDisplay(item)">修改</button> &nbsp;&nbsp;
                    <button class="btn btn-danger" data-toggle="modal" data-target="#member-admin-delete"
                            ng-click="delete(item)">删除
                    </button>
                </td>
            </tr>
        </table>
    </div>

    <div class="info-list" id="member-admin-detail">
        <div class="box">
            <div class="item" id="basic-info">
                <h3><strong>{{infoList.sName}}</strong></h3>
                <div>
                    <p><b>性 别:</b>{{infoList.sSex}}</p>
                    <p><b>年 级:</b> 博士</p>
                    <p><b>民 族:</b> 汉族</p>
                </div>
            </div>
            <div class="item" id="basic-images">
                <img src="../View/images/image06.png" alt="" class="img-thumbnail ">
            </div>
        </div>
        <div class="detail-list">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>类别</th>
                    <th>主要成果</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>论文</td>
                    <td>{{infoList.sPaper}}</td>
                </tr>
                <tr>
                    <td>专利</td>
                    <td>{{infoList.sName}}</td>
                </tr>
                <tr>
                    <td>软著</td>
                    <td>{{infoList.sPaper}}</td>
                </tr>
                <tr>
                    <td>获奖</td>
                    <td>{{infoList.sPaper}}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>


    <!--添加成员-->
    <div class="info-list" id="member-admin-add">
        <form action="">
            <div class="box">
                <div class="item basic-info">
                    <div class="form-group">
                        <label>姓名</label>
                        <input type="text" class="form-control" name="sname"/>
                    </div>
                    <div class="form-group">
                        <label>编号</label>
                        <input type="text" class="form-control" name="sid"/>
                    </div>
                    <div class="form-group">
                        <label>性别</label>
                        <input type="text" class="form-control" name="ssex"/>
                    </div>
                    <div class="form-group">
                        <label>成员类型</label>
                        <select class="form-control" id="user" vaule="" name="identity">
                            <option value="1">博士</option>
                            <option value="2">硕士</option>
                            <option value="3">导师</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>研究方向</label>
                        <input type="text" class="form-control" name="sresearch"/>
                    </div>
                </div>
                <div class="item basic-img">
                    <img alt="140x140" src="../View/images/image06.png"/>
                    <input id="file-4" type="file" class="file" data-upload-url="#">
                </div>
            </div>

            <div class="box">
                <div class="item">
                    <header>论文</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
                <div class="item">
                    <header>专利</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
                <div class="item">
                    <header>软著</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
                <div class="item">
                    <header>专利</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>

    <!--修改成员信息-->
    <div class="info-list" id="member-admin-modify">
        <form action="">
            <div class="box">
                <div class="item basic-info">
                    <div class="form-group">
                        <label>姓名</label>
                        <input type="text" class="form-control" name="" value="{{infoList.sName}}"/>
                    </div>
                    <div class="form-group">
                        <label>编号</label>
                        <input type="text" class="form-control" name="" value="{{infoList.sId}}"/>
                    </div>
                    <div class="form-group">
                        <label>性别</label>
                        <input type="text" class="form-control" name="" value="{{infoList.sSex}}"/>
                    </div>
                    <div class="form-group">
                        <label>成员类型</label>
                        <input type="text" class="form-control" name="" value="{{infoList.sSession}}"/>
                    </div>
                </div>
                <div class="item basic-img">
                    <img alt="140x140" src="../View/images/image06.png"/>
                    <input id="" type="file" class="file" data-upload-url="#">
                </div>
            </div>

            <div class="box">
                <div class="item">
                    <header>论文</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
                <div class="item">
                    <header>专利</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
                <div class="item">
                    <header>软著</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
                <div class="item">
                    <header>专利</header>
                    <div class="form-group">
                        <label>题目</label>
                        <input type="text" class="form-control" name=""/>
                        <span><i class="iconfont  icon-add9" ng-click="newline($event)"></i></span>
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>


    <!--删除成员模态框，但其相关论文等都在-->
    <div class="modal fade" id="member-admin-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <form action="">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title" id="myModalLabel">
                            删除成员
                        </h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="control-label">姓名</label>
                            <input type="text" class="form-control"  placeholder="{{infoBasic.sName}}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label">编号</label>
                            <input type="text" class="form-control"  placeholder="{{infoBasic.sId}}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label">成员类型</label>
                            <input type="text" class="form-control"  placeholder="{{infoBasic.sSession}}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label">主要研究方向</label>
                            <input type="text" class="form-control" placeholder="{{infoBasic.sResearch}}"/>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <div class="row">
                            <label class="col-md-3 col-md-offset-6">
                                <button type="button" class="btn btn-info btn-block"  data-dismiss="modal">取消</button>
                            </label>
                            <label class="col-md-3">
                                <button type="submit" class="btn btn-danger btn-block">删除</button>
                            </label>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </form>
        </div><!-- /.modal -->
    </div>

</div>


